<script type="text/javascript">
    function modalCompany(){
        $('#free').load("<?=  base_url()?>company/popup");
    }
    function setCompany(id, name){
        $("#txtOfficename").val(name);
        $("#txtOfficeid").val(id);
        $('#free').modal('hide');
    }
    function addCompany(){
        $('#free').load("<?=  base_url()?>company/popupadd");
    }    
</script>

<form method="post" action="#" class="form-horizontal">
    <h3>Data Karir</h3>
  <fieldset>
	  <div class="control-group">
	    <label for="companyID" class="control-label">Perusahaan:</label>
	    <div class="controls">
        <input type="text" name="txtOfficename" class="span3" onfocus="modalCompany()" id="txtOfficename" readonly="readonly" data-toggle="modal"  href="#free" value="<?= getOfficeName(@$alumni->companyid) ?>"/>
        <input type="hidden" name="txtOfficeid" id="txtOfficeid" value="<?= @$alumni->companyid ?>"/>
        <font class="strerr"><?= @$err->companyid ?></font>
	    </div>
	  </div>
	  <div class="control-group">
	    <label for="division" class="control-label">Divisi:</label>
	    <div class="controls">
	      <input type="text" name="division" id="division" value="<?=@$alumni->division?>" class="span5">
	      <font class="strerr"><?=@$err->division?></font>
	    </div>
	  </div>
	  <div class="control-group">
	    <label for="position" class="control-label">Jabatan:</label>
	    <div class="controls">
	      <input type="text" name="position" id="position" value="<?=@$alumni->position?>" class="span5">
	      <font class="strerr"><?=@$err->position?></font>
	    </div>
	  </div>
	  <div class="control-group">
	    <label for="Years" class="control-label">Tahun:</label>
	    <div class="controls">
	      <input type="text" name="yearin" id="yearin" value="<?=@$alumni->yearin?>" class="span2" placeholder="Awal"/>&nbsp;&nbsp; <i class="icon-minus"></i> &nbsp;
	      <input type="text" name="yearout" id="yearout" value="<?=@$alumni->yearout?>" class="span2" placeholder="Akhir"/>
	    </div>
	  </div>
	  <div class="span8">
			<input type="submit" value="Submit" class="btn btn-primary pull-right" style="margin-right:100px;">
	  </div>
	</fieldset>
</form>
<div class="modal hide fade" id="free"></div>